@keyframes back {
    from {
        transform: scale(1)
    }
    to {
        transform: scale(.9)
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes move {
    from {
        transform: translateY(100%)
    }
    to {
        transform: translateY(0)
    }
}

.banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    .item {
        height: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        background-color: #fff;
    }
}

.main {
    transition: transform .1s;
    transform-origin: 50% 0;
    &.back {
        transform: scale(.9);
    }
}

.content {
    box-shadow: 0 -1px 5px rgba(0, 0, 0, .2);
    position: relative;
    z-index: 5;
    background: #F8F8F8;
    .goods-price {
        padding: 20rpx 10rpx;
        background: #fff;
        .tg {
            font-size: 18pt;
            color: #FF2231;
            font-weight: 400;
            letter-spacing: -4rpx;
            .sign {
                font-size: .7em;
            }
            .bar {
                margin-left: 10px;
                border-radius: 20rpx;
                padding: 10rpx 20rpx;
                display: inline-block;
                font-size: 10pt;
                background-color: #e02e24;
                color: #fff;
                position: relative;
                line-height: 100%;
                letter-spacing: 0;
                transform-origin: left;
                transform: translateY(-10rpx) scale(.9);
                &:after {
                    content: ' ';
                    display: inline-block;
                    width: 13px;
                    height: 13px;
                    background-color: #e02e24;
                    position: absolute;
                    left: -2px;
                    top: 22%;
                    transform: rotate(45deg);
                }
            }
        }
        .normal {
            color: #888;
            line-height: 100%;
            text {
                font-size: 10pt;
            }
        }
    }
    .goods-title {
        padding: 10rpx;
        font-size: 12pt;
        font-weight: bold;
        background: #fff;
        .desc {
            font-size: 10pt;
            color: #212121;
            font-weight: 200;
        }
    }
    .tg-list {
        padding: 10rpx;
        background: #fff;
        .title {
            font-size: 10pt;
            font-weight: 400;
        }
        .cell {
            position: relative;
            border-bottom: dashed 1px #d6dae2;
            margin-top: 10px;
            padding-bottom: 10px;
            &:last-child {
                border-bottom: none;
            }
            .avatar {
                width: 35px;
                vertical-align: bottom;
                background-repeat: no-repeat;
                background-size: cover;
                border-radius: 20px;
            }
            .user {
                padding-left: 10px;
                line-height: 35px;
            }
            .info {
                height: 35px;
                right: 0;
                text-align: right;
                padding-right: 10px;
                .num {
                    color: #e64340;
                    font-size: 9pt;
                    font-weight: 400;
                }
                .time {
                    color: #888;
                    font-size: 8pt;
                }
            }
            .join {
                color: #fff;
                background-color: #e64340;
                line-height: 35px;
                text-align: center;
                font-size: 10pt;
                padding: 0 10px;
                border-radius: 5px;
            }
        }
    }
    .tabs {
        background: #fff;
        .tab {
            text {
                color: #b2b2b2;
                padding: 20rpx;
                display: inline-block;
            }
            &.active {
                text {
                    color: #e64340;
                    border-bottom: solid 1px #e64340;
                    font-weight: 400;
                }
            }
        }
    }
    .detail {
        background: #fff;
        padding: 0;
        padding-top: 10px;
        overflow: hidden;
    }
    .comment-list {
        background: #fff;
        .avatar {
            display: inline-block;
            width: 20px;
            height: 20px;
            background-repeat: no-repeat;
            background-size: cover;
            border-radius: 10px;
            color: rgba(255, 255, 255, 0);
        }
        .user {
            display: inline-block;
            margin-left: 10px;
            vertical-align: top;
        }
        .star {
            display: inline-block;
            vertical-align: middle;
            margin-left: 10px;
            text {
                width: 15px;
                height: 15px;
                display: inline-block;
                background-position: center;
                background-size: contain;
                background-repeat: no-repeat;
                color: rgba(255, 255, 255, 0);
                background-image: url(http://img.zhxcxmall.com/static/star2.png);
            }
        }
        .more {
            position: relative;
            overflow: visible;
            padding: 10px;
            &:before {
                position: absolute;
                display: block;
                content: ' ';
                left: 0;
                right: 0;
                top: -100px;
                height: 100px;
                background: linear-gradient(to top, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 0));
            }
        }
        .no {
            padding: 30rpx;
            color: #ccc;
        }
    }
}

.action {
    position: fixed;
    background: #fff;
    z-index: 99;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    .link {
        padding: 0 25rpx;
        position: relative; // border-right: 1rpx solid #E2E2E2;
        border-top: 1rpx solid #E2E2E2;
        .contact {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0;
        }
        .icon {
            background-repeat: no-repeat;
            background-position: bottom center;
            background-size: 20px;
            height: 25px;
            &.home {
                background-image: url(http://img.zhxcxmall.com/static/zhiwo/zhiwo-home.png);
            }
            &.service {
                background-image: url(http://img.zhxcxmall.com/static/zhiwo/zhiwo-service.png);
            }
            &.keep {
                background-image: url(http://img.zhxcxmall.com/static/zhiwo/zhiwo-keep.png);
                &.active {
                    background-image: url(http://img.zhxcxmall.com/static/zhiwo/zhiwo-keep1.png);
                }
            }
        }
        .label {
            text-align: center;
            font-size: 9pt;
            height: 20px;
            line-height: 22px;
        }
    }
    .buy {
        background: #e64340;
        color: #fff;
        text-align: center;
        &.s {
            line-height: 45px;
        }
        &.q {
            background: #F3A1A0;
        }
        .money {
            height: 30px;
            line-height: 30px;
            font-size: 13pt;
            text {
                font-size: .7em;
                letter-spacing: -2rpx;
            }
        }
        .extra {
            height: 15px;
            line-height: 8px;
            font-size: 10pt;
        }
    }
}

.c-mask {
    animation: fade .1s;
}

.buy-detail {
    animation: move .2s;
    background-color: #ffffff;
    position: relative;
    .close {
        right: 5px;
        top: 5px;
        padding: 5px;
        z-index: 29;
    }
    .cover-wrap {
        width: 120px;
        height: 80px;
        background-color: #ffffff;
        position: relative;
        margin: 0 10px;
        .goods-cover {
            position: absolute;
            bottom: 0;
            width: 120px;
            height: 120px;
            border: solid 5px #ffffff;
            border-radius: 5px;
            overflow: auto !important;
            background: #fff;
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;
            box-shadow: 0 0 5px rgba(0, 0, 0, .2)
        }
    }
    .info {
        margin-right: 10px;
        .top {
            line-height: 40px;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #E02E24;
            font-size: 1.5em;
            font-weight: 400;
            vertical-align: bottom;
        }
        .goods-name {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 400;
            margin-top: 30rpx;
        }
    }
    .order {
        padding: 0 10px;
        scroll-view {
            padding: 10px 0;
            height: 250px;
        }
        .spec {
            padding: 15px 0;
            padding-bottom: 0;
            border-bottom: dashed 1px #b2b2b2;
            .spec-item {
                display: inline-block;
                padding: 2px 10px;
                border-radius: 5px;
                border: solid 1px #e5e7ec;
                margin: 10px;
                font-size: .9em;
                position: relative;
                &.selected {
                    border: solid 1px #E02E24;
                    color: #E02E24;
                }
                &.free:after{
                    display: inline-block;
                    font-size: 6pt;
                    position: absolute;
                    right: -20px;
                    top: -17px;
                    background: #E02E24;
                    color: #fff;
                    z-index: 99;
                    content: '团长免单';
                    line-height: 100%;
                    padding: 3px 4px;
                    border-radius: 3px;
                    font-weight: bold;
                }
                &.free:before{
                    position: absolute;
                    display: inline-block;
                    width: 0;
                    height: 0;
                    border-top: 6px solid #E02E24;
                    border-left: 6px solid transparent;
                    border-right: 6px solid transparent;
                    z-index: 98;
                    content: '';
                    top: -6px;
                    right: 0;
                }
            }
            &:last-of-type {
                margin-bottom: 20px;
            }
        }
        .order-num {
            padding: 15px 0;
            .label {
                vertical-align: bottom;
            }
            .plus,
            .minus {
                display: inline-block;
                padding: 0 10px;
                background-color: #DEDEDE;
                margin-left: 4px;
                height: 1.4rem;
                line-height: 1.4rem;
                overflow: hidden;
                text {
                    display: inline-block;
                    width: 10px;
                    background-color: #2f2f2f;
                    vertical-align: middle;
                    position: relative;
                    height: 2px;
                }
                &.dsb {
                    opacity: .7;
                }
            }
            .plus text:after {
                background-color: #2f2f2f;
                display: inline-block;
                position: absolute;
                width: 10px;
                height: 2px;
                content: ' ';
                transform: rotate(90deg);
            }
            .num {
                background-color: #ffffff;
                width: 40px;
                padding: 0 2px;
                border: solid 1px #DDDDDD;
                vertical-align: middle;
                text-align: center;
            }
        }
    }
    .submit {
        height: 50px;
        line-height: 50px;
        background-color: #E02E24;
        color: #ffffff;
        text-align: center;
        font-weight: 400;
        letter-spacing: .5em;
    }
}

@keyframes lucky-move {
    0% {
        transform: rotate(0)
    }
    3% {
        transform: rotate(15deg)
    }
    6% {
        transform: rotate(0)
    }
    9% {
        transform: rotate(-15deg)
    }
    12% {
        transform: rotate(0)
    }
}

.support {
    background: #fff;
    padding: 20rpx 10rpx;
    line-height: 60rpx;
    .label {
        line-height: 60rpx;
    }
    .logo {
        background-size: contain;
        background-position: center;
        width: 50px;
        background-repeat: no-repeat;
        &.one-logo {
            background-image: url(http://img.zhxcxmall.com/static/goods-lucky.png);
        }
        &.tg-logo {
            background-image: url(http://img.zhxcxmall.com/static/tg-free.png);
        }
    }
    .go {
        color: #fff;
        background-color: #e64340;
        line-height: 35px;
        text-align: center;
        font-size: 10pt;
        padding: 0 10px;
        border-radius: 5px;
    }
}